package com.gyz.cfmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.gyz.cfmall.product.entity.AttrGroupEntity;
import com.gyz.cfmall.product.vo.AttrGroupWithAttrsVo;
import com.gyz.cfmall.product.vo.SpuItemAttrGroupVo;
import com.gyz.common.utils.PageUtils;


import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author gong_yuzhuo
 * @email gongyuzhcho@163.com
 * @date 2021-10-17 10:17:22
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);

    /**
     * spu的规格参数
     * @param spuId
     * @param catalogId
     * @return
     */
    List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuIdAndCatalogId(Long spuId, Long catalogId);
}

